﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="VerTarifasPorPeriodo.aspx.cs" Inherits="NewTierra.Pages.VerTarifasPorPeriodo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <link href="~/Styles/EstiloGeral.css" rel="stylesheet" type="text/css" />

    <style type="text/css">
    
        #VerTarifas
        {
            width: 739px;
            height: auto;
            padding: 5px;
        }
    
        #VerTarifas .VerTarifasGridTarifas
        {
            width: 411px;
            float:left;
            padding: 10px;
        }
    
        #VerTarifas .VerTarifasGridMeal
        {
            width: 241px;
            float: left;
            margin-left: 40px;
            padding: 10px;
        }
        #VerTarifas .GridPeriodos
        {
            height: 177px;
            width: 409px;
            padding: 10px;
        }
        .scrollGridPeriodos  
        {
            width: 388px; 
            height: 130px; 
            overflow: auto; 
        }
       
       
    </style>

    <title></title>
</head>
<body style="width: 747px; height: 846px;">

    <form id="form1" runat="server">

        <div id="VerTarifas">

            <div class="GridPeriodos">
                <asp:Button ID="btnFecharTarifas" class="btnsGeral" runat="server" Text="Fechar" OnClientClick="window.close();"/>

                <fieldset>
                    <legend>Períodos</legend>
                
                 <div class="scrollGridPeriodos">
                 <asp:GridView ID="GridTarifasPeriodo" 
                 runat="server"
                 AutoGenerateColumns="False" 
                 GridLines="None" 
                 CssClass="mGrid" 
                 EmptyDataText="Não existe Periodos para esse Supplier."
                 Height="16px"
                 Width="16px"
                 PageSize="5" onselectedindexchanged="GridTarifasPeriodo_SelectedIndexChanged">

           <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                      <SelectedRowStyle CssClass="SelectedRowStyle" />
           <Columns>

           <asp:BoundField DataField="S_merc_periodo_id" HeaderText="ID" ReadOnly="True" 
                      SortExpression="S_merc_periodo_id" InsertVisible="False">

               <FooterStyle CssClass="invisible" />
               <HeaderStyle CssClass="invisible" />
               <ItemStyle CssClass="invisible" />
               </asp:BoundField>

                 <asp:BoundField DataField="S_merc_periodo_from" HeaderText="From" 
                     SortExpression="S_merc_periodo_from" DataFormatString="{0:dd/MM/yy}">

                      <ItemStyle Wrap="False" />
               </asp:BoundField>

                      <asp:BoundField DataField="S_merc_periodo_to" HeaderText="To" 
                     SortExpression="S_merc_periodo_to" DataFormatString="{0:dd/MM/yy}">

                          <ItemStyle Wrap="False" />
               </asp:BoundField>

                      <asp:BoundField DataField="S_mercado_estacao_nome" HeaderText="Estação" 
                     SortExpression="S_mercado_estacao_nome"/>
                     
                      <asp:BoundField DataField="S_mercado_per_fds_from" HeaderText="Fds From" 
                     SortExpression="S_mercado_per_fds_from" 
                   DataFormatString="{0:dd/MM/yy}">

                          <HeaderStyle Wrap="False" />

                          <ItemStyle Wrap="False" />
               </asp:BoundField>

                      <asp:BoundField DataField="S_mercado_per_fds_to" HeaderText="Fds To" 
                     SortExpression="S_mercado_per_fds_to" DataFormatString="{0:dd/MM/yy}">

                          <HeaderStyle Wrap="False" />

                          <ItemStyle Wrap="False" />
               </asp:BoundField>

               <asp:CommandField HeaderText="Select" ShowSelectButton="True" />

        </Columns>

        <PagerStyle CssClass="pgr"></PagerStyle>

        </asp:GridView>
        </div>

                </fieldset>
            </div>

              <div class="VerTarifasGridTarifas">

                          <fieldset>
                <legend>Tarifas</legend>   

        <asp:RadioButtonList ID="RdoTarifa" runat="server" AutoPostBack="True" 
        RepeatDirection="Horizontal" Width="250px" Height="16px" 
        onselectedindexchanged="RdoTarifa_SelectedIndexChanged">
        <asp:ListItem Value="0" Selected="True">Por Pessoa</asp:ListItem>
        <asp:ListItem Value="1">Por Apartamento</asp:ListItem>
        </asp:RadioButtonList>

          <asp:GridView ID="GridTarifas" runat="server" AllowPaging="True"
         AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="Não existe Tarifa cadastrada para esse periodo."
            Height="16px" PageSize="30" OnPageIndexChanging="PaginarDadosTarifas" 
                Width="16px">
           <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>

            <Columns>

                 <asp:BoundField DataField="S_mercado_tipo_tarifa_nome" HeaderText="Tarifa Nome"  SortExpression="S_mercado_tipo_tarifa_nome" >
                 <HeaderStyle Wrap="False" />
                 <ItemStyle Wrap="False" />
                 </asp:BoundField>

                 <asp:BoundField DataField="Tarif_categoria_nome" HeaderText="Categoria" 
                     SortExpression="Tarif_categoria_nome" >
                 
                 <ItemStyle Wrap="False" />
                 </asp:BoundField>

                  <asp:BoundField DataField="Tipo_room_nome" HeaderText="Room" 
                     SortExpression="Tipo_room_nome" >

                 <ItemStyle Wrap="False" />
                 </asp:BoundField>
                 
                 <asp:BoundField DataField="S_merc_tarif_tarifa_total" HeaderText="Tarifa" SortExpression="S_merc_tarif_tarifa_total" />
                 
                 <asp:BoundField DataField="S_mercado_tarifa_status_nome" HeaderText="Status" SortExpression="S_mercado_tarifa_status_nome" />
                 
            </Columns>
        
        <PagerStyle CssClass="pgr"></PagerStyle>

        </asp:GridView>

              </fieldset>
       </div>

       <div class="VerTarifasGridMeal">
            <fieldset>
             <legend>Meal</legend>

              <asp:GridView ID="GridMeal" runat="server" AllowPaging="True"
         AutoGenerateColumns="False" GridLines="None" CssClass="mGrid" EmptyDataText="Não existe Meal cadastrado para esse periodo."
            Height="16px" PageSize="30" OnPageIndexChanging="PaginarDadosMeal" Width="16px">
           <AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>

           <Columns>

                <asp:BoundField DataField="S_meal_nome" HeaderText="Meal" 
                    SortExpression="S_meal_nome" >
                
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
                </asp:BoundField>
                
                <asp:BoundField DataField="S_merc_meal_tarifa" HeaderText="Tarifa" SortExpression="S_merc_meal_tarifa" />
               
                <asp:BoundField DataField="S_mercado_tarifa_status_nome" HeaderText="Status" 
                    SortExpression="S_mercado_tarifa_status_nome" >
           
                <ItemStyle Wrap="False" />
                </asp:BoundField>
           
           </Columns>
        
        <PagerStyle CssClass="pgr"></PagerStyle>

        </asp:GridView>
            
            
            </fieldset>
       </div>

        </div>

    </form>

</body>
</html>
